<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
  </style>
</head>
<body>
  <div id="app"></div>
  <!-- <div id="btn">++</div>
  <p id="box">123</p> -->
  
  <!-- <script src="https://unpkg.com/@vue/reactivity@3.0.5/dist/reactivity.global.js"></script> -->
  <!-- <script src="./compiler/index.js"></script> -->

  <script type="module">
    import { renderer, normalizeClass } from './compiler/index.js'
    import { effect, ref, reactive } from './reactivity/reactivity.js'
    import { onMounted, Transition } from './runtime-core/index.js'
    import { defineAsyncComponent } from './runtime-dom/index.js'
    import { tokenzie, parse, dump, transform, generate } from './compiler-core/index.js'

    // const { effect, ref } = VueReactivity

      const template = `
        <div>
          <h1 v-if="ok">Vue Template</h1>  
        </div>
      `

      const ast = parse(`<div><p>Vue</p><p>Template</p></div>`)
      console.log(ast, 'parse')
      transform(ast)
      console.log(ast, 'ast')
      const node = generate(ast.jsNode)
      console.log(node)
      // console.log(transform(ast))

  </script>
</body>
</html>
